import { fromJS } from 'immutable';
import * as constants from './constants';

// workShowList: home首页中的展示四个作品板块
const defaultState = fromJS({
  workShowList: []
});

export default (state = defaultState, action) => {
  switch(action.type) {
    case constants.GET_HOMEWORKDATA:
      return state.set("workShowList", fromJS(action.workShowList));
    default:
      return state;
  }
}